package com.zy.web;

import com.zy.service.ComputeClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

    @Autowired
    private ComputeClient computeClient;

    @GetMapping(value = "/add")
    public Integer add() {
        return computeClient.add(10, 20);
    }

}